function getHomeApi(req, res, baseURL = 'http://localhost:3000') {
  return new Promise((resolve, reject) => {
    res.send({
      code: 10000,
      message: '请求成功',
      data: {
        imageList: [
          { id: 101, src: baseURL + '/images/haibao001.png' },
          { id: 102, src: baseURL + '/images/haibao002.png' },
          { id: 103, src: baseURL + '/images/haibao003.png' },
          { id: 104, src: baseURL + '/images/haibao004.png' },
        ],
        banner: baseURL + '/images/banner001.png',
        recommend: [
          { id: 111, src: baseURL + '/images/5997.png', title: '巴黎', text: 'Paris' },
          { id: 112, src: baseURL + '/images/324378.png', title: '伦敦', text: 'London' },
          { id: 113, src: baseURL + '/images/9530.png', title: '东京', text: 'Tokyo' },
          { id: 114, src: baseURL + '/images/6434.png', title: '塞班岛', text: 'Sebhan' },
        ],
        recDestination: [
          { id: 121, src: baseURL + '/images/recdes001.png', title: '境内游' },
          { id: 121, src: baseURL + '/images/recdes002.png', title: '周边游' },
          { id: 121, src: baseURL + '/images/recdes003.png', title: '境外游' },
        ],
      },
    })
  })
}

// modules.exports = { getHomeApi }
module.exports = { getHomeApi }
